<%@ taglib prefix="s" uri="/struts-tags"%>
<div style="margin:0px 5px 0px 5px" align="center">
	<s:set var="count" value="0" />
	<s:iterator value="bannerCampaignsList" status="row">
		<s:if test="%{bannerSettings.id == 2}">
			<s:if test="%{#count < bannerSettings.noOfFormat}">
				<s:if test="%{maxViews > 0}">
					<s:if test="%{maxViews > views}">
						<div style="margin: 0px 0px 0px 0px">
							<a target="<s:property value="bannerSettings.linkTarget"/>"
								href="clickOnBanner.htm?adId=<s:property value="id"/>" class="banner-ads-link"
								title="<s:property value="altText"/>"> <img border="0"
									src="servlet/ImageServlet?dto=BannerCampaigns&id=<s:property value="id"/>"
									alt="<s:property value="altText"/>"
									title="<s:property value="underText"/>"> </a>
							<s:if test="%{bannerSettings.textBelow == true}">
								<div style="margin: 2px 0px 0px 0px" align="center">
									<a target="<s:property value="bannerSettings.linkTarget"/>"
										href="clickOnBanner.htm?adId=<s:property value="id"/>" class="banner-ads-link"
										title="<s:property value="altText"/>"><s:property
											value="campaign" /> </a>
								</div>
							</s:if>
						</div>
						<s:set var="count" value="%{#count + 1}" />
					</s:if>
				</s:if>
			</s:if>
		</s:if>
	</s:iterator>
</div>